<!-- MenuPage.vue -->
<template>
  <div class="menu-page">
    <el-card class="box-card">
      <h2>合同信息管理</h2>
      <el-button type="primary" @click="goToAddContract">新增合同</el-button>
      <el-button type="primary" @click="goToQueryContract">查询合同</el-button>
      <el-button type="primary" @click="goToEditContract">修改合同</el-button>
      <el-button type="primary" @click="goToDeleteContract">删除合同</el-button>
    </el-card>
  </div>
</template>

<script>
export default {
  methods: {
    goToAddContract() {
      this.$router.push('/draft_contract');
    },
    goToQueryContract() {
      this.$router.push('/query_contract');
    },
    goToEditContract() {
      this.$router.push('/finalize_contract');
    },
    goToDeleteContract() {
      this.$router.push('/delete_contract');
    }
  }
}
</script>

<style scoped>
.box-card {
  margin: auto;
  width: 600px;
  text-align: center;
}
.el-button {
  margin: 20px 10px;
}
</style>
